module sfmsz(
input        sec_add,
input        min_add,
input        hour_add,

output reg[7:0] sec_out,
output reg[7:0] min_out,
output reg[7:0] hour_out
);


initial 
begin 
sec_out='d0;
min_out='d0;
hour_out='d0;
end


//sec
always@(posedge sec_add)
begin
	  begin
		if(sec_out=='d59)
		  begin
		   sec_out=0;
		  end
		else
		  begin
		   sec_out=sec_out+1;
		  end
	  end	
	end
	
//min
always@(posedge min_add)
begin
	  begin
		if(min_out=='d59)
		  begin
		   min_out=0;
		  end
		else
		  begin
		   min_out=min_out+1;
		  end
	  end	
	end
	
//hour
always@(posedge hour_add)
begin
	  begin
		if(hour_out=='d23)
		  begin
		   hour_out=0;
		  end
		else
		  begin
		   hour_out=hour_out+1;
		  end
	  end	
	end
endmodule